package com.ty.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ty.entity.Book;
import com.ty.resp.CommonResp;

import java.util.HashMap;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : txy
 * @create : 2024/1/9 13:41
 */

public interface IBookService extends IService<Book> {
    CommonResp queryAll(Page<Book> page, String orderBy, String search);

    Page<Book> queryByType(Page<Book> page, String name, Integer typeId);

    Page<Book> queryByName(Page<Book> page, String name);

    Book queryById(Integer id);
    List<HashMap<String,String>> getBooksByNum(Integer num);
}
